import 'dio_result.dart';

class DioPageResult<T> extends DioResult<PageData<T>> {
  DioPageResult(
      {required int code,
      required bool success,
      required PageData<T> data,
      required String msg})
      : super(code: code, success: success, data: data, msg: msg);
}

class PageData<T> {
  PageData({
    required this.records,
    required this.total,
    required this.size,
    required this.current,
    required this.orders,
    required this.optimizeCountSql,
    required this.searchCount,
    required this.countId,
    required this.maxLimit,
    required this.pages,
  });

  List<T> records;
  int total;
  int size;
  int current;
  List<dynamic> orders;
  bool optimizeCountSql;
  bool searchCount;
  String countId;
  int maxLimit;
  int pages;
}
